package com.zdkj.subway.rca.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdkj.subway.rca.entity.SwCkBomSmallPayment;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;


/**
 * BOM小额支付平台数据汇总表
 *
 * @author stw
 * @date 2020-10-27 20:28:52
 */
public interface SwCkBomSmallPaymentMapper extends BaseMapper<SwCkBomSmallPayment> {
    List<Map<String, String>> selectLineMap();

    List<Map<String, String>> selectStationMap();

    List<Map<String, String>> selectTicketTtypeMap();

    List<Map<String, Object>> getSwCkBomSmallCount(@Param("startDate") LocalDate startDateLocalDate,
                                                   @Param("endDate") LocalDate endDateLocalDate,
		                                           @Param("lineCode") String lineCode);

    List<Map<String, Object>> getCashSale(@Param("startDate") LocalDate startDateLocalDate,
                                          @Param("endDate") LocalDate endDateLocalDate,
		                                  @Param("lineCode") String lineCode);

    List<Map<String, Object>> getAllSale(@Param("startDate") LocalDate startDateLocalDate,
                                         @Param("endDate") LocalDate endDateLocalDate,
		                                 @Param("lineCode") String lineCode);

    IPage<SwCkBomSmallPayment> selectPage(@Param("page") Page page, @Param("startDate") String startDate, @Param(
            "endDate") String endDate);

    void updateBatch(@Param("ids") List<Integer> integerList);
}
